package com.ylyq.ylxx.service.impl;

import com.ylyq.ylxx.entity.YlyqPlanStopStart;
import com.ylyq.ylxx.mapper.YlyqPlanStopStartMapper;
import com.ylyq.ylxx.service.IYlyqPlanStopStartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 保存需要智能启停的计划 服务实现类
 * </p>
 *
 * @author xiaweichao
 * @since 2020-08-04
 */
@Service
public class YlyqPlanStopStartServiceImpl extends ServiceImpl<YlyqPlanStopStartMapper, YlyqPlanStopStart> implements IYlyqPlanStopStartService {

    @Autowired
    private YlyqPlanStopStartMapper ylyqPlanStopStartMapper;

    /**
     * 功能描述：批量创建计划
     * @author 577
     * @param ylyqPlanStopStartList 计划数据
     * @return
     * @date 2020/11/5
     **/
    @Override
    public int insertBatch(List<YlyqPlanStopStart> ylyqPlanStopStartList){
        return ylyqPlanStopStartMapper.insertBatch(ylyqPlanStopStartList);
    }
}
